package com.yc.bbs.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import com.yc.bbs.dao.TblReplyMapper;
import com.yc.bbs.entity.TblReply;
import com.yc.bbs.entity.TblTopic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * BBS论坛-回帖表-2 前端控制器
 * </p>
 *
 * @author k
 * @since 2024-11-25
 */
@RestController
@RequestMapping("/tblReply")
public class TblReplyController {
    @Autowired
    TblReplyMapper replyMapper;
    @RequestMapping("queryByTid")
    public Page<TblReply> queryByTid(int tid, int page, int rows){
        Page<TblReply> p=new PageDTO<>(page,rows);
        return replyMapper.selectByTid(tid,p);
    }
}
